import { createRouter, createWebHistory } from 'vue-router'
// eslint-disable-next-line no-unused-vars
import { useUserStroe } from '@/stores'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      component: () => import('@/views/layout/LayoutContainer.vue'),
      redirect: '/system/qa',
      children: [
        {
          path: '/system/qa',
          component: () => import('@/views/system/SystemQa.vue')
        },
        {
          path: '/recomm/place',
          component: () => import('@/views/recomm/RecommPlace.vue')
        },
        {
          path: '/recomm/food',
          component: () => import('@/views/recomm/RecommFood.vue')
        },
        {
          path: '/recomm/history',
          component: () => import('@/views/recomm/RecommHistory.vue')
        },
        {
          path: '/recomm/recreation',
          component: () => import('@/views/recomm/RecommRecreation.vue')
        },
        {
          path: '/data/track',
          component: () => import('@/views/data/DataTrack.vue')
        }
      ]
    }, //架子
    { path: '', redirect: '/home' }
  ]
})

export default router
